<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>js的值传递</title>
        <script>
            let obj1 = new Object()
            obj1.name = 'aaa'
            let obj2 = obj1
            console.log(`obj1是${obj1.name}`)
            console.log(obj2)
            obj1 = new Object()
            obj1.name = 'bbb'

            console.log(`obj2是${obj2.name}`)
            

        </script>
    </head>
    <body>


    </body>


</html>